package model.command;
import controller.KeyListeners.KeyListenerSet;
/**
 *
 * @author joseph
 */
public class CreateVehicle extends Create{
    private CreateVehicleable factory;
    public CreateVehicle(CreateVehicleable factory){
        super();
		setFactory(factory);
    }
    @Override
    public CreateVehicle clone() {
        return new CreateVehicle(factory);
    }
    @Override
    public void executeCommand() {
        factory.createVehicle();
    }
	private void setFactory(CreateVehicleable factory){
        this.factory = factory;
    }
    @Override
    public String toString(){
        return "Create Vehicle";
    }
}
